package com.team.six.bluecatshop.domain;

import java.math.BigDecimal;

public class History {
    private Comment comment;

    public Comment getComment() {
        return comment;
    }

    public void setComment(Comment comment) {
        this.comment = comment;
    }

    private int commentScore;

    public int getCommentScore() {
        return commentScore;
    }

    public void setCommentScore(int commentScore) {
        this.commentScore = commentScore;
    }

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column history.history_id
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    private String historyId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column history.indent_id
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    private String indentId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column history.product_id
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    private String productId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column history.product_count
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    private Integer productCount;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column history.sku_id
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    private String skuId;

    /**
     * 商品图片
     */
    private String imgSrc;

    /**
     * 商品名称
     */
    private String productName;

    /**
     * 商品邮费
     */
    private BigDecimal productPostage;

    public BigDecimal getProductPostage() {
        return productPostage;
    }

    public void setProductPostage(BigDecimal productPostage) {
        this.productPostage = productPostage;
    }

    public String getImgSrc() {
        return imgSrc;
    }

    public void setImgSrc(String imgSrc) {
        this.imgSrc = imgSrc;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column history.product_price
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    private BigDecimal productPrice;

    private Product product;

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column history.history_id
     *
     * @return the value of history.history_id
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    public String getHistoryId() {
        return historyId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column history.history_id
     *
     * @param historyId the value for history.history_id
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    public void setHistoryId(String historyId) {
        this.historyId = historyId == null ? null : historyId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column history.indent_id
     *
     * @return the value of history.indent_id
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    public String getIndentId() {
        return indentId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column history.indent_id
     *
     * @param indentId the value for history.indent_id
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    public void setIndentId(String indentId) {
        this.indentId = indentId == null ? null : indentId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column history.product_id
     *
     * @return the value of history.product_id
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    public String getProductId() {
        return productId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column history.product_id
     *
     * @param productId the value for history.product_id
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    public void setProductId(String productId) {
        this.productId = productId == null ? null : productId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column history.product_count
     *
     * @return the value of history.product_count
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    public Integer getProductCount() {
        return productCount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column history.product_count
     *
     * @param productCount the value for history.product_count
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    public void setProductCount(Integer productCount) {
        this.productCount = productCount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column history.sku_id
     *
     * @return the value of history.sku_id
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    public String getSkuId() {
        return skuId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column history.sku_id
     *
     * @param skuId the value for history.sku_id
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    public void setSkuId(String skuId) {
        this.skuId = skuId == null ? null : skuId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column history.product_price
     *
     * @return the value of history.product_price
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    public BigDecimal getProductPrice() {
        return productPrice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column history.product_price
     *
     * @param productPrice the value for history.product_price
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table history
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        History other = (History) that;
        return (this.getHistoryId() == null ? other.getHistoryId() == null : this.getHistoryId().equals(other.getHistoryId()))
            && (this.getIndentId() == null ? other.getIndentId() == null : this.getIndentId().equals(other.getIndentId()))
            && (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
            && (this.getProductCount() == null ? other.getProductCount() == null : this.getProductCount().equals(other.getProductCount()))
            && (this.getSkuId() == null ? other.getSkuId() == null : this.getSkuId().equals(other.getSkuId()))
            && (this.getProductPrice() == null ? other.getProductPrice() == null : this.getProductPrice().equals(other.getProductPrice()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table history
     *
     * @mbg.generated Mon Jul 22 14:32:07 CST 2019
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getHistoryId() == null) ? 0 : getHistoryId().hashCode());
        result = prime * result + ((getIndentId() == null) ? 0 : getIndentId().hashCode());
        result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
        result = prime * result + ((getProductCount() == null) ? 0 : getProductCount().hashCode());
        result = prime * result + ((getSkuId() == null) ? 0 : getSkuId().hashCode());
        result = prime * result + ((getProductPrice() == null) ? 0 : getProductPrice().hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "History{" +
                "historyId='" + historyId + '\'' +
                ", indentId='" + indentId + '\'' +
                ", productId='" + productId + '\'' +
                ", productCount=" + productCount +
                ", skuId='" + skuId + '\'' +
                ", imgSrc='" + imgSrc + '\'' +
                ", productName='" + productName + '\'' +
                ", productPostage=" + productPostage +
                ", productPrice=" + productPrice +
                ", product=" + product +
                '}';
    }
}